package com.hr.controller;

import com.hr.pojo.TeacherUser;
import com.hr.service.TeacherUserServiceMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("findAll")
public class TeacherUserController {
    @Autowired
    private TeacherUserServiceMapper userServiceMapper;
    @GetMapping("user")
    public List<TeacherUser> findAll(){
        List<TeacherUser> userList = userServiceMapper.findAll();
        return userList;
    }
}
